package com.ruoyi.xp.order.task;

import com.ruoyi.xp.order.service.IOrderItemGoodsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author chendx
 */
@Component("OrderTask")
public class OrderTask {

    private static final Logger log = LoggerFactory.getLogger(OrderTask.class);

    @Autowired
    private IOrderItemGoodsService orderItemGoodsService;

    /**
     * 更新订单明细仓库出货采购价
     */
    public void updateOrderItemGoodsPurchasePrice() {

        log.info("开始更新订单明细仓库出货采购价");

        orderItemGoodsService.updatePurchasePrice();

        log.info("结束更新订单明细仓库出货采购价");
    }
}
